import request from '@/utils/request';
import { other } from './prefix';

const commentManage = {
  // 查询评论列表
  getComment(params) {
    return request.get(other + '/works_comment', { params });
  },
  // 创建评论
  setComment(params) {
    return request.post(other + '/works_comment', params);
  },
  // 更新评论
  updComment(id, params) {
    return request.post(other + '/works_comment/' + id, params);
  },
  // 删除评论
  delComment(id) {
    return request.delete(other + '/works_comment/' + id);
  },
};

export default commentManage;
